package api.homework01;

public class IndexStringDemo {
    public static void main(String[] args) {
        String str = "thinking in java";
        System.out.println(str.indexOf("in"));
        System.out.println(str.indexOf("in",2));
        System.out.println(str.lastIndexOf("in"));
    }
}
